package com.ljb.retrofit_demo.service;

import com.ljb.retrofit_demo.URl;
import com.ljb.retrofit_demo.bean.WeatherBean;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * 全部网络请求的方法定义接口
 * Created by lijianbin on 2016/12/15.
 */
public interface IRequest {

    @GET(URl.URL_TEXT)
    Call<WeatherBean> getWeather(@Query("key") String key, @Query("location") String location);
}
















